<?php 
include 'config.php'; 
$con = new ConfigDB();

$query = mysql_query('SELECT id,inf_title,inf_subject,inf_date,inf_detail FROM information_main') or die(mysql_error()); 

$data_array = array(); 

while($arr = mysql_fetch_object($query)) 
	{


		$data_array[$arr->id]['inf_title'] = $arr->inf_title; 
		$data_array[$arr->id]['inf_subject'] = $arr->inf_subject; 
		$data_array[$arr->id]['inf_date'] = $arr->inf_date;
		$data_array[$arr->id]['inf_detail'] = $arr->inf_detail;
		
	} 
echo json_encode($data_array); 
?>
		